import VueRouter from "vue-router";
import Vue from "vue";
import Login from "../pages/Login.vue";
import Register from "../pages/Register.vue";
import ReSet from "../pages/ReSet.vue";
import CheckEmail from "../pages/CheckEmail.vue";

Vue.use(VueRouter);
const router = new VueRouter({
  routes: [
    { path: "/", redirect: "/login" },
    {
      path: "/login",
      component: Login,
    },
    {
      path: "/register",
      component: Register,
    },
    {
      path: "/reset",
      component: ReSet,
    },
    {
      path: "/checkEmail",
      component: CheckEmail,
    },
  ],
});

export default router;
